<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script
      id="sJq"
      src="
https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js
"
    ></script>
  </head>
  <body>
   <h2>删除 引用jQ的scriptTag 后:</h2>
   <p>之前注册的事件仍有效</p>
   <p>`$`可用</p>
    <script>
      $().ready(function () {
        $(document).on('click', function (e) {
          console.log('click', e)
          $('#sJq').remove()
        })
      })
    </script>
  </body>
</html>
